import request from '@/utils/request'



export function loadAllRole(data) {
	return request({
		url: '/employee/allRole',
		method: 'post',
		data
	})
}


export function loadAll(data) {
	return request({
		url: '/employee',
		method: 'post',
		data
	})
}


export function update(data) {
	return request({
		url: '/employee',
		method: 'put',
		data
	})
}

export function delEmp(data) {
	return request({
		url: '/employee/'+data,
		method: 'delete',
	})
}

export function delEmps(data) {
	return request({
		url: '/employee/delMany',
		method: 'delete',
		data
	})
}
